package com.lanxiao.cloud.modules.gateway.route.domain.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lanxiao.cloud.common.core.enums.DelFlagEnum;
import com.lanxiao.cloud.common.mybatis.basic.BaseEntity;

/**
 * @author ：qiaoliang
 * @date ：2021-08-19
 */
@TableName(value = "sys_gateway_route", autoResultMap = true)
public class GatewayRoute extends BaseEntity<Long, Long> {
  /** 服务唯一ID **/
  private String serviceId;
  /** 转发地址 **/
  private String uri;
  /** 访问路径 **/
  private String predicates;
  /** 过滤 **/
  private String filters;
  /** 顺序 **/
  private int sort;

  public GatewayRoute() {
  }

  public GatewayRoute(String remarks, DelFlagEnum delFlag, String serviceId, String uri,
      String predicates, String filters, int sort) {
    super(remarks, delFlag);
    this.serviceId = serviceId;
    this.uri = uri;
    this.predicates = predicates;
    this.filters = filters;
    this.sort = sort;
  }

  public GatewayRoute(Long id, String remarks,
      DelFlagEnum delFlag, String serviceId,
      String uri, String predicates, String filters, int sort) {
    super(id, remarks, delFlag);
    this.serviceId = serviceId;
    this.uri = uri;
    this.predicates = predicates;
    this.filters = filters;
    this.sort = sort;
  }

  public String getServiceId() {
    return serviceId;
  }

  public void setServiceId(String serviceId) {
    this.serviceId = serviceId;
  }

  public String getUri() {
    return uri;
  }

  public void setUri(String uri) {
    this.uri = uri;
  }

  public String getPredicates() {
    return predicates;
  }

  public void setPredicates(String predicates) {
    this.predicates = predicates;
  }

  public String getFilters() {
    return filters;
  }

  public void setFilters(String filters) {
    this.filters = filters;
  }

  public int getSort() {
    return sort;
  }

  public void setSort(int sort) {
    this.sort = sort;
  }
}
